package string;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;

public class Test01_NodeStream {
	
	public static void main(String[] args) {
		
		try{
			InputStream in = System.in;		// byte type
			Reader rd = new InputStreamReader(in); // char type
			
			System.out.println("한 글자만 입력하세요.");
			//int n = in.read(); // 한글 조합이 불편하다.
			int n = rd.read();
			
			System.out.println(n + "," + (char)n);
		}catch(IOException ei){
			System.out.println(ei.getMessage());
		}

	}

}
